<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('全部项目')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p>关键字：</p>
                                <input type="text" name="operator"/>
                            </li>
                            <li>
							项目类型：<select name="projecttype" th:with="type=${@dict.getType('sys_normal_disable')}">
							            <option value="">全部</option>
										<option value="">房屋建筑</option>
										<option value="">市政道路</option>
								   </select>
								</li>  
                            <li>
                            <li>
								<label>总造价范围： </label>
								<input style="width:100px" type="text" placeholder="造价范围"/>
								<span>-</span>
								<input style="width:105px" type="text" placeholder="造价范围"/>
							</li>
                            <li>
                            <li>
								<label>总面积范围： </label>
								<input style="width:100px" type="text" placeholder="面积范围"/>
								<span>-</span>
								<input style="width:105px" type="text" placeholder="面积范围"/>
							</li>
                            <li>
							项目状态：<select name="projecttype" th:with="type=${@dict.getType('sys_normal_disable')}">
							            <option value="">全部</option>
										<option value="">准备</option>
										<option value="">地下工程</option>
										<option value="">地面结构</option>
										<option value="">封顶</option>
										<option value="">竣工验收</option>
								   </select>
								</li>  
                            <li>
                                <!-- <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a> -->
                                <a class="btn btn-primary btn-rounded btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
            <div class="col-sm-12 select-table table-striped">
                 <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
    var prefix = ctx + "project/projectAll";
    
    $(function() {
    	$('#bootstrap-table').bootstrapTable({
    	/* var options = {
    			url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                detailUrl: prefix + "/detail/{id}",
                modalName: "全部项目", */
                columns: [{
                        field: 'id',
                        title: '序号',
						formatter: function (value, row, index) {
						
						    return index + 1;
						}
                    }, {
                        field: 'name',
                        title: '项目名称',
                        formatter: function (value, row, index) {
                            var actions = [];
                            actions.push('<a href="'+prefix+'/detail?name='+value+'&company='+row.company+'&price='+row.price+'&area='+row.area+'&address='+row.address+'">'+value+'</a>'); 
                            //actions.push('<a href="javascript:void(0)" onclick="$.operate.detailFull(\'' + row.id + '\')">'+value+'</a>');
                            return actions.join('');
                        }
                    },
                    {
                        field: 'company',
                        title: '建设单位'
                    },
                    {
                        field: 'price',
                        title: '总造价(万元)'
                    },
                    {
                        field: 'area',
                        title: '总面积(m2)'
                    },
                    {
                        field: 'address',
                        title: ' 项目地址'
                    }
                ],
                data: [{
                    name: '仁恒海棠公园一期（C区）',
                    company: '海南陆侨集团有限公司',
                    price: '200000',
                    area: '45555.1',
                    address: '海口市秀英区海榆西线北侧'
                }, {
                    name: '田德海泉湾A区',
                    company: '海南田德房地产开发有限公司',
                    price: '3366.7434',
                    area: '22816.2',
                    address: '海口市美兰区和平大道63号'
                }, {
                    name: '	海南清水湾B11-1、B11-2区2栋公寓、4栋高层及地下车库工程',
                    company: '海南雅居乐房地产开发有限公司',
                    price: '14961.85',
                    area: '149618.52',
                    address: '海南省陵水县清水湾'
	               }
	            ]
    	    })
        //};
    	//$.table.init(options);
    });
    </script>
</body>
</html>